package br.com.intelsys.iflow.driver.struts;

import org.jbpm.graph.def.Transition;

import br.com.intelsys.iflow.IFlowTransition;

/**
 * Encapsula uma transicao do processo BPM baseado no jBPM da JBOSS.
 * 
 * @author Patrick Givisiez
 *
 */

public class IFlowTransitionStrutsDriver implements IFlowTransitionStruts {
	private IFlowTransition iFlowTransition;
	private IFlowInstanceStruts iFlow;

	IFlowTransitionStrutsDriver(IFlowInstanceStruts iFlow, IFlowTransition transition) {
		this.iFlow = iFlow;
		this.iFlowTransition = transition;
	}
	
	public String getName() {
		return(this.iFlowTransition.getName());
	}

	public IFlowInstanceStruts getIFlowInstanceStruts() {
		return(this.iFlow);
	}

}
